package com.qingcheng.dao;

import com.qingcheng.pojo.order.Order;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OrderMapper extends Mapper<Order> {

    /**
     * 根据用户名查询订单详情
     */
    @Select("SELECT * FROM tb_order WHERE username = #{username}")
    public List<Order> findOrderListByUsername(@Param("username") String username);
}
